package stark.app.alicloud;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import stark.app.R;
import stark.app.api.AliSDKApi;
import stark.common.basic.utils.LogUtil;

public class AliSDKActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_alisdk);

        AliSDKApi.getInstance().aliPhoneDetail("13088824490")
                .enqueue(new Callback<AliPhoneLocBean>() {
                    @Override
                    public void onResponse(Call<AliPhoneLocBean> call, Response<AliPhoneLocBean> response) {
                        LogUtil.e(response.body());
                    }

                    @Override
                    public void onFailure(Call<AliPhoneLocBean> call, Throwable t) {
                        LogUtil.e(t.toString());
                    }
                });
    }


}